package com.movitech.mobile.cz.base.purchase.service.impl;

import com.baomidou.mybatisplus.plugins.Page;
import com.movitech.mobile.cz.base.purchase.entity.PStrategicPurchaseContact;
import com.movitech.mobile.cz.base.purchase.entity.ext.ExtPStrategicPurchaseContact;
import com.movitech.mobile.cz.base.purchase.entity.ext.WFowFormListReq;
import com.movitech.mobile.cz.base.purchase.mapper.PStrategicPurchaseContactMapper;
import com.movitech.mobile.cz.base.purchase.mapper.ext.ExtPStrategicPurchaseContactMapper;
import com.movitech.mobile.cz.base.purchase.service.PStrategicPurchaseContactService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 战略采购招标项 服务实现类
 * </p>
 *
 * @author Movitech Mobile
 * @since 2018-07-16
 */
@Service("pStrategicPurchaseContactService")
public class PStrategicPurchaseContactServiceImpl extends ServiceImpl<PStrategicPurchaseContactMapper, PStrategicPurchaseContact> implements PStrategicPurchaseContactService {

    @Autowired
    private ExtPStrategicPurchaseContactMapper extPStrategicPurchaseContactMapper;

    @Override
    public List<PStrategicPurchaseContact> getStrategicPurchaseContractPlanByMaps(Map<String, Object> mapParams) {
        return extPStrategicPurchaseContactMapper.getStrategicPurchaseContractPlanByMaps(mapParams);
    }

    @Override
    public void findExtList(Page<ExtPStrategicPurchaseContact> page, WFowFormListReq flowFormListReqVO) {
        List<ExtPStrategicPurchaseContact> list =  extPStrategicPurchaseContactMapper.selectExtList(page,flowFormListReqVO);
        page.setRecords(list);
    }
}
